package net.oschina.app.com.oschina.pages;

import android.widget.LinearLayout;
import android.widget.RelativeLayout;

import net.oschina.app.SoloWrap;

/**
 * Created by Administrator on 2017/1/5.
 */

public class ExplorePage {

    private SoloWrap solo;
    private LinearLayout software,find,scan,shake;
    private RelativeLayout language;

    public ExplorePage(SoloWrap solo){
        this.solo = solo;
    }

    public void initViews(){
        software = (LinearLayout) solo.getView("net.oschina.app:id/rl_soft");
        find = (LinearLayout) solo.getView("net.oschina.app:id/rl_find_osc");
        scan = (LinearLayout) solo.getView("net.oschina.app:id/rl_scan");
        shake = (LinearLayout) solo.getView("net.oschina.app:id/rl_shake");
//        language = (RelativeLayout) solo.getView("net.oschina.app:id/tv_software_catalog_name");
    }

    public void clickSoft(){
        solo.clickOnView(software);
    }

//    public void clicklanguage(){
//        solo.clickOnView(language);
//    }

    public void scrollToTop(){
        solo.scrollToTop();
    }

    public void scrollToBottom(){
        solo.scrollToBottom();
    }

}
